package com.zk.po;

import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author kun
 * @since 2022-06-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    private String type;

    private String commentId;

    private String positionId;

    private String userId;

    private String content;

    private Integer like;

    @TableField("commentNum")
    private Integer commentNum;

    private LocalDateTime time;

    private List<Comment> commentList;

    private String avaterUrl;

    private User user;

    private String respondWho;

    //评论是否展开
    private boolean commentVisible;

    //该用户是否已点赞
    private boolean likeVisible;
}
